package com.eke.bean;
public class GoodsClassify{
	/**
	 * 商品分类id
	 *
	 */
	private Integer goodsClassifyId;
	/**
	 * 商品类名
	 *
	 */
	private String goodsClassifyName;
	public GoodsClassify(){
	}
	public GoodsClassify(Integer goodsClassifyId){
		this.goodsClassifyId=goodsClassifyId;
	}
	public GoodsClassify(Integer goodsClassifyId,String goodsClassifyName){
		this.goodsClassifyId=goodsClassifyId;
		this.goodsClassifyName=goodsClassifyName;
	}
	/**
	 * 获取商品分类id
	 */
	public Integer getGoodsClassifyId(){
		return goodsClassifyId;
	}
	/**
	 * 设置商品分类id
	 */
	public void setGoodsClassifyId(Integer goodsClassifyId){
		this.goodsClassifyId=goodsClassifyId;
	}
	/**
	 * 获取商品类名
	 */
	public String getGoodsClassifyName(){
		return goodsClassifyName;
	}
	/**
	 * 设置商品类名
	 */
	public void setGoodsClassifyName(String goodsClassifyName){
		this.goodsClassifyName=goodsClassifyName;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((goodsClassifyId == null) ? 0 : goodsClassifyId.hashCode());
		result = prime * result + ((goodsClassifyName == null) ? 0 : goodsClassifyName.hashCode());
		return result;
	}
		
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GoodsClassify other = (GoodsClassify) obj;
		if (goodsClassifyName == null) {
			if (other.goodsClassifyName != null)
				return false;
		} else if (!goodsClassifyName.equals(other.goodsClassifyName))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "GoodsClassify [goodsClassifyId=" + goodsClassifyId+",goodsClassifyName=" + goodsClassifyName+"]";
	}





}